<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
	<body>
		<s:form action="module!saveMenu">
			<table border="1">
				<tr>
					<td>
						<s:textfield name="module.title" label="菜单名" />
					</td>
				</tr>
				<s:hidden name="module.id"/>
				<tr>
					<td>
						<s:select list="#{'1':'一级菜单','2':'二级菜单'}"
							name="module.level" label="菜单级别" />
					</td>
				</tr>
				<tr>
					<td>
						<s:select list="modules"  listValue="title" listKey="id"
							name="module.parentId" label="父菜单" />
					</td>
				</tr>
				<tr>
					<td>
						<s:textfield name="module.murl" label="菜单url" />
					</td>
				</tr>
				<tr>
					<td>
						<s:textfield name="module.remarks" label="备注" />
					</td>
				</tr>
				<tr>
					<td>
						<s:select list="#{'1':'有效','0':'无效'}"
							name="module.flag" label="是否有效" />
					</td>
				</tr>
				<tr >
					<td conspan="2" align="center">
						<s:submit value="保存" method="addMenu" theme="simple" />
						<s:reset value="重置" theme="simple" />
					</td>
				</tr>
			</table>
		</s:form>
	</body>
</html>